using EOSDigital.SDK;
using System.Threading;

namespace EOSDigital.API
{
	internal sealed class ApiThread : STAThread
	{
		protected override void WaitForNotification()
		{
			lock (base.threadLock1)
			{
				while (base.block1 && base.IsRunning)
				{
					Monitor.Wait(base.threadLock1, 0);
					lock (STAThread.ExecLock)
					{
						CanonSDK.EdsGetEvent();
						Monitor.Wait(STAThread.ExecLock, 40);
					}
				}
				base.block1 = true;
			}
		}
	}
}
